#pragma once

#include "SnRender.h"
#include "base/shader.h"
#include <memory>
#include <string>
#include <vector>
namespace Sivin {


  /**
   * 
   * 本节，我将会使用两种方式来绘制一个“矩形”
   * 1.绘制两个三角形
   * 2.使用EBO
   * 
   */
  class SquareRender2 : public SnRender {
  public:
    explicit SquareRender2();
    ~SquareRender2();

  public:
    virtual void onGLInit() override;
    virtual void onRender() override;

  private:
    std::unique_ptr<Shader> mShader{nullptr};
    std::vector<float> mVertexData;
    GLuint mVAO;
  };

}// namespace Sivin